Configure FTP Server - ProFTPD
2014/08/16 |
Install ProFTPD to configure FTP Server.
|
|
[1] | Install ProFTPD. |
[root@www ~]#
vi /etc/proftpd.conf # line 8: change server name
ServerName "
www.srv.world "
# line 10: change admin email
ServerAdmin
root@srv.world
# line 48: add follows # get access log and auth log ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
[root@www ~]#
vi /etc/ftpusers # add users you prohibit to FTP access test
/etc/rc.d/init.d/proftpd start Starting proftpd: [ OK ] [root@www ~]# chkconfig proftpd on
|
[2] | If IPTables is running, allow FTP port and fixed PASV ports. For "-I INPUT 5" section below, Replace it to your own environment. |
[root@www ~]#
vi /etc/proftpd.conf # add to the end: fix PASV ports PassivePorts 21000 21010 /etc/rc.d/init.d/proftpd restart [root@www ~]# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT [root@www ~]# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 21000:21010 -j ACCEPT |
[3] | If SELinux is enabled, change bollean setting. |
[root@www ~]# setsebool -P allow_ftpd_full_access on
|